﻿
/// <reference path="jquery-1.7-vsdoc.js" />

function Clobber(parama) {
    // clobber the parameter; this will not be seen in 
    // the calling code
    param = new Object();
    //alert(param.message);
    parama.message = "This will not work";
}

// This modifies a property of the parameter, which
// can be seen in the calling code.
function Update(param) {
    // Modify the property of the object; this will be seen
    // in the calling code.
    param.message = "I was changed";
}

// Create an object, and give it a property.
var obj = new Object();
obj.message = "This is the original";

// Call Clobber, and print obj.message. Note that it hasn't changed.
Clobber(obj);
//window.alert(obj.message); // Still displays "This is the original".
var message = obj.message;

// Call Update, and print obj.message. Note that is has changed.
Update(obj);
//window.alert(obj.message); // Displays "I was changed".
message = obj.message;
Math.pi


$("form").submit(function () {
    var status = $("#AOGStatus");
    var date = $("#AOGDate"); //这样用法不好,会使实际这个对象已经不存在了 但这个变量还是存在,就是当页面释放时,这个AOGDate已经不存在,但date里还存在.
    if ($($(status).children()[0]).attr("selected") && $.trim((date).val()).length == 0) {
        if ($("#AOGDate") != null) {
            alert("您到货状态选择了是，但没有填写到货时间。");
            $("#AOGDate").css("border", "red solid 1px");
        }
        return false;
    }
    else {
        return true;
    }
});













$(document).ready(function () {

    $("#textValue").click(function () {
        $(this).text("ddddddddddddd");
    });



});